﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Administrator/MasterPage.master" AutoEventWireup="false" CodeFile="AMLWATCHLIST.aspx.vb" Inherits="Administrator_AMLWATCHLIST" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table style="width:100%;">
            <tr>
                <td align="right" style="width: 150px">
                    <asp:Label ID="lblSanctionList" runat="server" CssClass="control">แหล่งที่มา</asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlListType" runat="server" CssClass="control" 
                        Width="200px" Height="25px">
                    </asp:DropDownList>
                    <asp:Button ID="btnCheckCustomer" runat="server" Text="เช็คความเสี่ยงลูกค้า" 
                        Width="142px" />
                </td>
            </tr>
            
            <tr>
                <td align="right" style="width: 150px">
                    &nbsp;</td>
                <td align="left" style="text-align: right">
                    <asp:Button ID="btnSearch" runat="server" CssClass="control" Text="search" 
                        Width="80px" />
                    <asp:Button ID="btnClear" runat="server" CssClass="control" 
                        Text="Clear" Width="80px" />
                    <asp:Button ID="btnPrint" runat="server" CssClass="control" Text="Print" 
                        Width="80px" />
                </td>
            </tr>
        </table>
        <div align="center">
            <asp:Label ID="lblMsg" runat="server" CssClass="control" Font-Size="XX-Large" 
                        ForeColor="Red" Height="30px" style="text-align: center" 
                Visible="False" Font-Bold="True" Font-Italic="False"></asp:Label>
            <asp:GridView ID="grdAmlWatchList" runat="server" AllowSorting="True" 
                AutoGenerateColumns="False" CellPadding="4" CssClass="control" 
                ForeColor="#333333" Width="100%" AllowPaging="True">
                <FooterStyle BackColor="White" Font-Bold="True" ForeColor="#333333" />
                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                <PagerSettings Mode="NumericFirstLast" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" 
                    CssClass="cssPager" />
                <SelectedRowStyle BackColor="#FFFFCC" Font-Bold="True" ForeColor="Navy" />
                <HeaderStyle BackColor="#E38120" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                  <asp:BoundField DataField="custcode" HeaderText="รหัสระบบของลูกค้า" >
                    <ItemStyle HorizontalAlign="Left" Width="46px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="uniqueid" HeaderText="เลขที่บัตร" 
                        SortExpression="uniqueid">
                    <ItemStyle Width="57px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="ชื่อไทย">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" 
                                Text='<%# eval("THFIRSTNAME") & " " & eval("THMIDNAME") & " " & eval("THLASTNAME") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="100px" HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ชื่ออังกฤษ">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" 
                                Text='<%# eval("ENFIRSTNAME") & " " & eval("ENMIDNAME") & " " & eval("ENLASTNAME") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="100px" HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="listType" HeaderText="แหล่งที่มา" 
                            SortExpression="listType" >
                    <ItemStyle HorizontalAlign="Left" Width="47px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="entity_id" HeaderText="รหัสระบบsanction" >
                    <ItemStyle HorizontalAlign="Left" Width="46px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="id_value" HeaderText="เลขที่บัตร" >
                    <ItemStyle HorizontalAlign="Left" Width="57px" />
                    </asp:BoundField>
                     <asp:BoundField DataField="single_string_name" HeaderText="ชื่อเต็มภาษาอังกฤษ" >
                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                    </asp:BoundField>
                     <asp:BoundField DataField="original_script_name" HeaderText="ชื่อเต็มภาษาท้องถิ่น" >
                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                    </asp:BoundField>
                  
                     <asp:TemplateField HeaderText ="FalsePositive">
                                  <ItemTemplate>
                        <asp:CheckBox ID="chkList" runat="server" OnCheckedChanged="checkbox_CheckedChanged" AutoPostBack = "true"/>
                        <asp:HiddenField ID="hiddenField1" Value='<%# Eval("falsepositive").ToString() %>'  runat="server" />    
                    </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="20px" />
                            </asp:TemplateField>
                   <%-- <asp:BoundField DataField="risklevel" HeaderText="ระดับความเสี่ยง" 
                        SortExpression="risklevel">
                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                    </asp:BoundField>--%>
                 
                </Columns>
            </asp:GridView>
        </div>
        <div align="right">
            <asp:Label ID="lblTotal" runat="server" Font-Bold="True" ForeColor="#003300"></asp:Label>
        </div>
        
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

